// import { defineConfig } from 'vite'
// import vue from '@vitejs/plugin-vue'

// // https://vitejs.dev/config/
// export default defineConfig({
//   plugins: [vue()],
// })



import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import { resolve } from "path";

export default defineConfig({

  server: {
    host: "localhost",
    port:8080,
  },
  // base: './', //相对路径
  plugins: [vue()],
  // 配置@
  //安装模块：npm install --save-dev @types/node
  resolve: {
    //设置路径别名
    alias: {
      '@': resolve(__dirname, "./src"),
      
    }
  }
})

